package club.dataresources.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BarberOrderedExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BarberOrderedExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andBarberIdIsNull() {
            addCriterion("barber_id is null");
            return (Criteria) this;
        }

        public Criteria andBarberIdIsNotNull() {
            addCriterion("barber_id is not null");
            return (Criteria) this;
        }

        public Criteria andBarberIdEqualTo(Integer value) {
            addCriterion("barber_id =", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdNotEqualTo(Integer value) {
            addCriterion("barber_id <>", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdGreaterThan(Integer value) {
            addCriterion("barber_id >", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("barber_id >=", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdLessThan(Integer value) {
            addCriterion("barber_id <", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdLessThanOrEqualTo(Integer value) {
            addCriterion("barber_id <=", value, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdIn(List<Integer> values) {
            addCriterion("barber_id in", values, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdNotIn(List<Integer> values) {
            addCriterion("barber_id not in", values, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdBetween(Integer value1, Integer value2) {
            addCriterion("barber_id between", value1, value2, "barberId");
            return (Criteria) this;
        }

        public Criteria andBarberIdNotBetween(Integer value1, Integer value2) {
            addCriterion("barber_id not between", value1, value2, "barberId");
            return (Criteria) this;
        }

        public Criteria andTimeAIsNull() {
            addCriterion("time_a is null");
            return (Criteria) this;
        }

        public Criteria andTimeAIsNotNull() {
            addCriterion("time_a is not null");
            return (Criteria) this;
        }

        public Criteria andTimeAEqualTo(Integer value) {
            addCriterion("time_a =", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeANotEqualTo(Integer value) {
            addCriterion("time_a <>", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeAGreaterThan(Integer value) {
            addCriterion("time_a >", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeAGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_a >=", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeALessThan(Integer value) {
            addCriterion("time_a <", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeALessThanOrEqualTo(Integer value) {
            addCriterion("time_a <=", value, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeAIn(List<Integer> values) {
            addCriterion("time_a in", values, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeANotIn(List<Integer> values) {
            addCriterion("time_a not in", values, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeABetween(Integer value1, Integer value2) {
            addCriterion("time_a between", value1, value2, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeANotBetween(Integer value1, Integer value2) {
            addCriterion("time_a not between", value1, value2, "timeA");
            return (Criteria) this;
        }

        public Criteria andTimeBIsNull() {
            addCriterion("time_b is null");
            return (Criteria) this;
        }

        public Criteria andTimeBIsNotNull() {
            addCriterion("time_b is not null");
            return (Criteria) this;
        }

        public Criteria andTimeBEqualTo(Integer value) {
            addCriterion("time_b =", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBNotEqualTo(Integer value) {
            addCriterion("time_b <>", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBGreaterThan(Integer value) {
            addCriterion("time_b >", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_b >=", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBLessThan(Integer value) {
            addCriterion("time_b <", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBLessThanOrEqualTo(Integer value) {
            addCriterion("time_b <=", value, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBIn(List<Integer> values) {
            addCriterion("time_b in", values, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBNotIn(List<Integer> values) {
            addCriterion("time_b not in", values, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBBetween(Integer value1, Integer value2) {
            addCriterion("time_b between", value1, value2, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeBNotBetween(Integer value1, Integer value2) {
            addCriterion("time_b not between", value1, value2, "timeB");
            return (Criteria) this;
        }

        public Criteria andTimeCIsNull() {
            addCriterion("time_c is null");
            return (Criteria) this;
        }

        public Criteria andTimeCIsNotNull() {
            addCriterion("time_c is not null");
            return (Criteria) this;
        }

        public Criteria andTimeCEqualTo(Integer value) {
            addCriterion("time_c =", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCNotEqualTo(Integer value) {
            addCriterion("time_c <>", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCGreaterThan(Integer value) {
            addCriterion("time_c >", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_c >=", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCLessThan(Integer value) {
            addCriterion("time_c <", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCLessThanOrEqualTo(Integer value) {
            addCriterion("time_c <=", value, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCIn(List<Integer> values) {
            addCriterion("time_c in", values, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCNotIn(List<Integer> values) {
            addCriterion("time_c not in", values, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCBetween(Integer value1, Integer value2) {
            addCriterion("time_c between", value1, value2, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeCNotBetween(Integer value1, Integer value2) {
            addCriterion("time_c not between", value1, value2, "timeC");
            return (Criteria) this;
        }

        public Criteria andTimeDIsNull() {
            addCriterion("time_d is null");
            return (Criteria) this;
        }

        public Criteria andTimeDIsNotNull() {
            addCriterion("time_d is not null");
            return (Criteria) this;
        }

        public Criteria andTimeDEqualTo(Integer value) {
            addCriterion("time_d =", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDNotEqualTo(Integer value) {
            addCriterion("time_d <>", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDGreaterThan(Integer value) {
            addCriterion("time_d >", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_d >=", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDLessThan(Integer value) {
            addCriterion("time_d <", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDLessThanOrEqualTo(Integer value) {
            addCriterion("time_d <=", value, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDIn(List<Integer> values) {
            addCriterion("time_d in", values, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDNotIn(List<Integer> values) {
            addCriterion("time_d not in", values, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDBetween(Integer value1, Integer value2) {
            addCriterion("time_d between", value1, value2, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeDNotBetween(Integer value1, Integer value2) {
            addCriterion("time_d not between", value1, value2, "timeD");
            return (Criteria) this;
        }

        public Criteria andTimeEIsNull() {
            addCriterion("time_e is null");
            return (Criteria) this;
        }

        public Criteria andTimeEIsNotNull() {
            addCriterion("time_e is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEEqualTo(Integer value) {
            addCriterion("time_e =", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeENotEqualTo(Integer value) {
            addCriterion("time_e <>", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeEGreaterThan(Integer value) {
            addCriterion("time_e >", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeEGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_e >=", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeELessThan(Integer value) {
            addCriterion("time_e <", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeELessThanOrEqualTo(Integer value) {
            addCriterion("time_e <=", value, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeEIn(List<Integer> values) {
            addCriterion("time_e in", values, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeENotIn(List<Integer> values) {
            addCriterion("time_e not in", values, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeEBetween(Integer value1, Integer value2) {
            addCriterion("time_e between", value1, value2, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeENotBetween(Integer value1, Integer value2) {
            addCriterion("time_e not between", value1, value2, "timeE");
            return (Criteria) this;
        }

        public Criteria andTimeFIsNull() {
            addCriterion("time_f is null");
            return (Criteria) this;
        }

        public Criteria andTimeFIsNotNull() {
            addCriterion("time_f is not null");
            return (Criteria) this;
        }

        public Criteria andTimeFEqualTo(Integer value) {
            addCriterion("time_f =", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFNotEqualTo(Integer value) {
            addCriterion("time_f <>", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFGreaterThan(Integer value) {
            addCriterion("time_f >", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_f >=", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFLessThan(Integer value) {
            addCriterion("time_f <", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFLessThanOrEqualTo(Integer value) {
            addCriterion("time_f <=", value, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFIn(List<Integer> values) {
            addCriterion("time_f in", values, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFNotIn(List<Integer> values) {
            addCriterion("time_f not in", values, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFBetween(Integer value1, Integer value2) {
            addCriterion("time_f between", value1, value2, "timeF");
            return (Criteria) this;
        }

        public Criteria andTimeFNotBetween(Integer value1, Integer value2) {
            addCriterion("time_f not between", value1, value2, "timeF");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterionForJDBCDate("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterionForJDBCDate("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterionForJDBCDate("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterionForJDBCDate("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(Integer value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(Integer value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(Integer value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(Integer value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(Integer value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<Integer> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<Integer> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(Integer value1, Integer value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}